package com.yidu.t299.dao.chr;

import com.yidu.t299.domain.chr.Market;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MarketMapper {

    @Select("select * from market where 1=1 and execute_state like '执行中' ")
    @Results(id = "MarketList",value = {
            @Result(property = "planName",column = "plan_name"),
            @Result(property = "planBeginDate",column = "plan_begin_date"),
            @Result(property = "planEndDate",column = "plan_end_date"),
            @Result(property = "planBody",column = "plan_body"),
            @Result(property = "totalMoney",column = "total_money"),
            @Result(property = "executeState",column = "execute_state")
    })
    public List<Market> selectAll();

}
